from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.headlinesPage import headlinesPage


class HeadlinesCase(UIParent):

    @classmethod
    def test_headlinesCheck1(self):
        '''市民头条文明城市列表校验'''

        headlinesPage.clickNews()
        # 点击文明城市
        headlinesPage.clickCivilize()

        listText = headlinesPage.getTitle()
        a = False
        if len(listText) != 0:
            a = True
        asserts.equal(a, True, "市民头条列表")
    #
    # @classmethod
    # def test_headlinesCheck2(self):
    #     '''市民头条城市消息列表校验'''
    #
    #
    #     headlinesPage.clickNews()
    #     # 点击城市消息
    #     headlinesPage.clickCity()
    #
    #     listText = headlinesPage.getTitle()
    #     r = False
    #     if len(listText) != 0:
    #         r = True
    #     asserts.equal(r, True, "市民头条列表")
    #
    #
    #
    # @classmethod
    # def test_headlinesCheck3(self):
    #     '''市民头条时政列表校验'''
    #
    #     headlinesPage.clickNews()
    #     # 点击时政
    #     headlinesPage.clickNow()
    #
    #     listText = headlinesPage.getTitle()
    #     a = False
    #     if len(listText) != 0:
    #         a = True
    #     asserts.equal(a, True, "市民头条列表")

